package com.bootdo.wx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.wx.dao.MemberUpgradeDao;
import com.bootdo.wx.domain.MemberUpgradeDO;
import com.bootdo.wx.service.MemberUpgradeService;



@Service
public class MemberUpgradeServiceImpl implements MemberUpgradeService {
	@Autowired
	private MemberUpgradeDao memberUpgradeDao;
	
	@Override
	public MemberUpgradeDO get(String id){
		return memberUpgradeDao.get(id);
	}
	
	@Override
	public List<MemberUpgradeDO> list(Map<String, Object> map){
		return memberUpgradeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return memberUpgradeDao.count(map);
	}
	
	@Override
	public int save(MemberUpgradeDO memberUpgrade){
		return memberUpgradeDao.save(memberUpgrade);
	}
	
	@Override
	public int update(MemberUpgradeDO memberUpgrade){
		return memberUpgradeDao.update(memberUpgrade);
	}
	
	@Override
	public int remove(String id){
		return memberUpgradeDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return memberUpgradeDao.batchRemove(ids);
	}

	@Override
	public MemberUpgradeDO getByLevel(String level) {
		return memberUpgradeDao.getByLevel(level);
	}
	
}
